package FileIOStream;

import java.io.File;
import java.util.Arrays;

/**
 * @Author liangzai
 * @Description:
 */
public class Demo7 {
    public static void main(String[] args) {
        File file = new File("D:/");
        String[] list = file.list();
        System.out.println(Arrays.toString(list));

        File[] listfile = file.listFiles();
        System.out.println(Arrays.toString(listfile));
    }
}
